<?php 
require_once("core.php");


if( !isset($_GET['page']) )
	$page = "tools";

else
	$page = $_GET['page'];


if( !isset($plugins[$page]) )
{
	die('Error, not a valid page requested!');
}	

$plugin = new $page;

if( !isset($_GET['action']) )
	$action = 0;
else
	$action = $_GET['action'];

echo $plugin->get_template( $action );

?>


